package com.qingfeng.client.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qingfeng.base.model.Page;
import com.qingfeng.client.DO.OrderQueryDo;
import com.qingfeng.client.VO.OrderExcelVo;
import com.qingfeng.client.bean.OrderStore;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface OrderStoreMapper extends BaseMapper<OrderStore> {

    List<OrderExcelVo> selectOrderInfo(@Param("storeId")Integer storeId);

    int updateStatByTradeId(@Param("updatedStat")Integer updatedStat,@Param("tradeId")Long tradeId);


    void updateStat(@Param("tradeId") Long tradeId,@Param("stat") int stat);

    IPage<OrderQueryDo> getPageList(Page page, @Param("orderStoreBean") OrderStore orderStoreBean);


    List<OrderStore> getByStat(@Param("stat")Integer stat);


    int updateStatById(@Param("updatedStat")Integer updatedStat,@Param("id")Long id);


    List<OrderStore> selectByTradeId(@Param("tradeId")Long tradeId);



}
